#b 继承a  单继承

class a:
    pass

class b(a):
    pass

class Voice:
    def __init__(self,name,age,color):
        self.name =name
        self.age =age
        self.color =color


class  Radio(Voice):  #继承父类
    pass

p1 =Radio('收音机',30,'黑色')
print(p1.name)
print(p1.age)
print(p1.color)